<template>
    <div class="tmpl">
        <h3>{{info.title}}</h3>
        <hr>
        <div class="content" v-html="info.content"></div>       
    </div>
</template>
<script>
    import common from "../../../statics/js/common.js";
    export default{
        data(){
            return{
                info:{},
                id:this.$route.params.id
            }
        },
        created(){
            this.getInfo()
        },
        methods:{
            getInfo(){
                this.$http.get(common.domain+'/api/goods/getdesc/'+this.id).then(re=>{
                    if(re.body.status != 0){
                        Toast(re.body.message);
                        return;
                    }
                    this.info = re.body.message[0];
                })
            }
        }
    }
</script>

<style lang="scss" scoped>
    img{
        width:100%
    }
</style>
